From d668c11fc22b2a9664c0ed78804cc8545beef44e Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sat, 30 Jan 2010 14:27:28 +0000 Subject: [PATCH] Fix "you are blocked" message for users who were blocked by zero-ID user. --- includes/User.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/User.php b/includes/User.php index 9dbd40397d..f90969a76b 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1154,6 +1154,8 @@ class User { if ( $this->mBlock->load( $ip , $this->mId ) ) { wfDebug( __METHOD__ . ": Found block.\n" ); $this->mBlockedby = $this->mBlock->mBy; + if( $this->mBlockedby == "0" ) + $this->mBlockedby = $this->mBlock->mByName; $this->mBlockreason = $this->mBlock->mReason; $this->mHideName = $this->mBlock->mHideName; $this->mAllowUsertalk = $this->mBlock->mAllowUsertalk; -- 2.20.1